<?php $this->header(); ?>
<div class="wrap jj">
    <div class="nav">
        <div class="return"><a href="/?g=Admin&m=User&a=node">返回上一级</a></div>
        <ul class="cc">
            <li class="current"><?php echo isset($_GET['id']) ? '<a href="/?g=Admin&m=' . MODULE . '&a=editNode&id=' . $id . '">编辑节点</a>' : '<a href="/?g=Admin&m=' . MODULE . '&a=addNode">添加节点</a>' ?></li>
        </ul>
    </div>
    <div class="h_a">添加Tips</div>
    <div class="mb10 prompt_text">
        <ol>
            <li>节点只有三层结构，如：后台 -- 登陆模块 -- 登陆</li>
            <li>添加超过三层以上，数据将调用和不显示</li>
        </ol>
    </div>
    <form class="J_ajaxForm" action="<?php echo $actionUrl; ?>" method="post" enctype="multipart/form-data">
        <div class="h_a">节点信息</div>
        <div class="table_full">
            <table width="100%">
                <col class="th" />
                <col/>
                <thead>
                    <tr>
                        <th>节点分组</th>
                        <td>
                            <select name="pid">
                                <option value="0">顶层节点</option>
                                <?php echo $node; ?>
                            </select>
                        </td>
                    </tr>
                </thead>
                <tr>
                    <th>节点名称（英文）</th>
                    <td><input name="name" type="text" class="input length_5" value="<?php echo $name; ?>"></td>
                </tr>
                <tr>
                    <th>节点描述</th>
                    <td><input name="title" type="text" class="input length_5" value="<?php echo $title; ?>"></td>
                </tr>
                <tr>
                    <th>提示信息（选填）</th>
                    <td>
                        <input name="mes" type="text" class="input length_5" value="<?php echo $mes; ?>">
                        <div class="fun_tips">注意：提示信息只有第三层结构节点才会触发的</div>
                    </td>
                </tr>
                <tr>
                    <th>是否验证权限</th>
                    <td>
                        <label><input type="radio" name="verify" value="0" <?php if (!empty($_GET['id']) && $verify == 0): ?>checked="checked"<?php endif; ?>><span>否</span></label>
                        <label><input type="radio" name="verify" value="1" <?php if (!empty($_GET['id']) && $verify == 1): ?>checked="checked"<?php elseif (empty($_GET['id'])): ?>checked="checked"<?php endif; ?>><span>是</span></label>
                    </td>
                </tr>
                <tr>
                    <th>排序</th>
                    <td><input name="listsort" type="text" class="input length_5" value="<?php echo $listsort; ?>"></td>
                </tr>
            </table>
        </div>

        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
            </div>
        </div>
    </form>

</div>
<?php $this->footer(); ?>